package com.sky.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("employee")
@ApiModel(description = "员工实体类") // 描述类的作用
public class Employee extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "员工主键", example = "1") // 描述字段作用及示例值
    private Long id;

    @ApiModelProperty(value = "员工用户名", example = "admin") // 描述字段作用及示例值
    private String username;

    @ApiModelProperty(value = "员工姓名", example = "张三") // 描述字段作用及示例值
    private String name;

    @ApiModelProperty(value = "员工密码", example = "123456") // 描述字段作用及示例值
    private String password;

    @ApiModelProperty(value = "员工电话", example = "13800001111") // 描述字段作用及示例值
    private String phone;

    @ApiModelProperty(value = "员工性别", example = "男") // 描述字段作用及示例值
    private String sex;

    @ApiModelProperty(value = "员工身份证号", example = "110101199003072316") // 描述字段作用及示例值
    private String idNumber;

    @ApiModelProperty(value = "员工状态: 0 禁用 1 启用", example = "1") // 描述字段作用及示例值
    private Integer status;
}
